package com.longqin.wechat.service.impl;

import com.longqin.wechat.entity.WfFlow;
import com.longqin.wechat.entity.WfProcess;
import com.longqin.wechat.mapper.WfFlowMapper;
import com.longqin.wechat.mapper.WfProcessMapper;
import com.longqin.wechat.service.CommSerive;
import com.longqin.wechat.service.IWfWorkService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author longqin
 * @since 2025-05-12
 */
@Service
public class WfWorkServiceImpl extends CommSerive implements IWfWorkService {
	
	@Autowired
	WfProcessMapper processMapper;
	
	@Autowired
	WfFlowMapper flowMapper;

    @Override
    public List<WfProcess> getProcessList(int status, String beginDate, String endDate) {
        return processMapper.selectList(getUserId(), status, beginDate, endDate);
    }
    
    @Override
    public List<WfFlow> getFlowList() {
        return flowMapper.selectList(getOrgId());
    }
}
